import config from "@/config"
import http from "@/utils/request"

export default {
	fitClass: {
		lists: {
			url: `${config.API_URL}/adminapi/fitting.Class/lists`,
			name: "获取备件类型列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/fitting.Class/add`,
			name: "添加备件类型",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/fitting.Class/edit`,
			name: "编辑备件类型",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/fitting.Class/delete`,
			name: "编辑备件类型",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/fitting.Class/detail`,
			name: "备件类型详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/fitting.Class/updateStatus`,
			name: "编辑备件类型",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    fitFitting: {
		lists: {
			url: `${config.API_URL}/adminapi/fitting.Fitting/lists`,
			name: "获取备件列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/fitting.Fitting/add`,
			name: "添加备件",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/fitting.Fitting/edit`,
			name: "编辑备件",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/fitting.Fitting/delete`,
			name: "编辑备件",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/fitting.Fitting/detail`,
			name: "备件详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/fitting.Fitting/updateStatus`,
			name: "编辑备件",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
}
